package com.station.param.request.purchase.InStock;

import lombok.Data;
import java.util.Date;
import java.util.List;

/**
 * @BelongsProject: newblderp
 * @BelongsPackage: com.station.param.request.purchase
 * @Author: songhui
 * @CreateTime: 2025-10-21  16:58
 * @Description: 采购收货单
 * @Version: 1.0
 */

@Data
public class InStockRequest {
    private InStockModel[] Model;

    @Data
    public static class InStockModel {
        private FBillTypeID FBillTypeID;
        private String FBusinessType;
        private String FBillNo;
        private Date FDate;
        private FNumberObject FStockOrgId;
        private FNumberObject FPurchaseOrgId;
        private FNumberObject FPurchaseDeptId;
        private FNumberObject FSupplierId;
        private String FOwnerTypeIdHead;
        private FNumberObject FOwnerIdHead;
        private FInStockEntry[] FInStockEntry;

    }

    @Data
    public static class FBillTypeID {
        private String FNUMBER;
        public FBillTypeID(String FNUMBER){
            this.FNUMBER =FNUMBER;
        }
    }

    @Data
    public static class FNumberObject {
        private String FNumber;
        public FNumberObject(String FNumber){
            this.FNumber = FNumber;
        }
    }

    @Data
    public static class FUserIDObject {
        private String FUserID;
    }

    @Data
    public static class FContactNumberObject {
        private String FCONTACTNUMBER;
    }

    @Data
    public static class FInStockEntry {

        private FNumberObject FMaterialId;
        private FNumberObject FUnitID;
        private Double FRealQty;
        private FNumberObject FPriceUnitID;
        private FNumberObject FStockId;
        private String FOWNERTYPEID;
        private FNumberObject FRemainInStockUnitId;
        private FNumberObject FOWNERID;
        private FNumberObject FReceiveStockID;
        private Double FPriceUnitQty;
        private String FSRCBillNo;
        private String FSRCBILLTYPEID;

    }
}
